package com.fuqi.android.zhongcai.base;


public class ApiUrl {

    // 最新接口更新到 接口编号 451

    private static final String DEBUG_HOST  = "http://zhuoguo.cc:8000/shzc/";
    private static final String ONLINE_HOST = "#";

    public static String getDefaultHost() {
        if (Constants.IS_DEBUG) {
            return DEBUG_HOST;
        } else {
            return ONLINE_HOST;
        }
    }

    public static String getUploadImageUrl() {
        return getDefaultHost() + "api/account/login";
    }

    public static String getMsgVerifyCodeUrl() {
        return getDefaultHost() + "verifycode_send.do";
    }

    //版本更新
    public static String getVersionDetailUrl() {
        return getDefaultHost() + "version/version_detail";
    }

    //用户反馈接口
    public static String getFeedbackUrl() {
        return getDefaultHost() + "feedback/app_save.do";
    }

    //查询订单的回访结果
    public static String getVisitInfoUrl() {
        return getDefaultHost() + "visit/app_visitInfo.do";
    }

    //内勤保存回访
    public static String getCreateVisitUrl() {
        return getDefaultHost() + "visit/app_createVisit.do";
    }

    //初始化回访信息
    public static String getInitVisitUrl() {
        return getDefaultHost() + "visit/app_initVisit.do";
    }

    //(内勤，队长，施工员)安装/改装/评分数据
    public static String getOrderDataUrl() {
        return getDefaultHost() + "order/app_orderData.do";
    }


    //获取订单评论
    public static String getOrderCommentUrl() {
        return getDefaultHost() + "comment/app_getOrderComment.do";
    }


    //客户评价
    public static String getSaveCommentUrl() {
        return getDefaultHost() + "comment/app_saveComment.do";
    }


    //订单列表（时间段）
    public static String getQueryOrderListByDateUrl() {
        return getDefaultHost() + "order/app_queryOrderListByDate.do";
    }

    //当月订单列表
    public static String getPerMonthOrderListUrl() {
        return getDefaultHost() + "order/app_perMonthOrderList.do";
    }


    //查询抽查列表（罚单或所有抽查）
    public static String getCheckInfoListUrl() {
        return getDefaultHost() + "checkinfo/app_queryCheckedListByDate.do";
    }

    //查询当月抽查列表（罚单或所有抽查）
    public static String getPerMonthCheckedListUrl() {
        return getDefaultHost() + "checkinfo/app_perMonthCheckedList.do";
    }

    //抽查数据（时间段查询）
    public static String getQueryCheckedByDateUrl() {
        return getDefaultHost() + "checkinfo/app_queryCheckedByDate.do";
    }

    //当月抽查数据
    public static String getPerMonthCheckedUrl() {
        return getDefaultHost() + "checkinfo/app_perMonthChecked.do";
    }

    //查询抽查结果
    public static String getCheckInfoUrl() {
        return getDefaultHost() + "checkinfo/app_getCheckInfo.do";
    }

    //保存抽查结果
    public static String getCreateCheckUrl() {
        return getDefaultHost() + "checkinfo/app_createCheck.do";
    }

    //获取系统人员
    public static String getUserStaffUrl() {
        return getDefaultHost() + "user/app_getStaff.do";
    }

    //订单详情
    public static String getOrderDetailUrl() {
        return getDefaultHost() + "order/app_orderDetail.do";
    }

    //订单处理
    public static String getOrderHandleUrl() {
        return getDefaultHost() + "order/app_handleOrder.do";
    }

    //发货
    public static String getOrderFHUrl() {
        return getDefaultHost() + "order/app_fh.do";
    }


    //获取数据字典子项
    public static String getFindSubNodeUrl() {
        return getDefaultHost() + "dictionaries/app_findSubNode.do";
    }

    //修改密码
    public static String getChangePwdUrl() {
        return getDefaultHost() + "app_changePWD.do";
    }

    //验证验证码
    public static String getVerifyCodeUrl() {
        return getDefaultHost() + "verifycode_verify.do";
    }

    //发送验证码
    public static String getSendVerifyCodeUrl() {
        return getDefaultHost() + "verifycode_send.do";
    }

    //获取公司信息
    public static String getCompanyInfoUrl() {
        return getDefaultHost() + "companyinfo/app_info.do";
    }

    //获取图片（主页轮播，二维码）
    public static String getBannerListUrl() {
        return getDefaultHost() + "pictures/app_list.do";
    }


    //  获取产品介绍
    public static String getProductIntroUrl() {
        return getDefaultHost() + "product/app_listVo.do";
    }

    // 获取中财三保信息
    public static String getSanBaoListUrl() {
        return getDefaultHost() + "sanbao/app_listVo.do";
    }

    //获取安装攻略
    public static String getInstallGuideUrl() {
        return getDefaultHost() + "installguide/app_listByStatus.do";
    }


    //app用户注册
    public static String getRegisertUrl() {
        return getDefaultHost() + "app_regist.do";
    }


    //app登录
    public static String getLoginUrl() {
        return getDefaultHost() + "app_login.do";
    }


    //获取订单列表
    public static String getOrderListUrl() {
        return getDefaultHost() + "order/app_getListByStatus.do";
    }


    //下订单
    public static String getCreateOrderUrl() {
        return getDefaultHost() + "order/app_createOrder.do";
    }

    //添加工人
    public static String getAddGRUrl() {
        return getDefaultHost() + "user/app_addgr.do";
    }

    //获取培训信息
    public static String getTrainListUrl() {
        return getDefaultHost() + "train/app_trainList.do";
    }

    //培训文章阅读量增加
    public static String getTrainReadCountUrl() {
        return getDefaultHost() + "train/app_addReadCount.do";
    }

    //上传图片
    public static String pushImg() {
        return getDefaultHost() + "pictures/app_uploadImg.do";

    }

    //上传图片数组
    public static String pushImgs() {
        return getDefaultHost() + "pictures/app_uploadImgs.do";

    }

    //初始化监察信息
    public static String getInitCheckUrl() {
        return getDefaultHost() + "checkinfo/app_initCheck.do";
    }

    // 保存要抽检的订单
    public static String getSaveOrder() {
        return getDefaultHost() + "order/app_savecj.do";
    }

    public static String getProductByType() {
        return getDefaultHost() + "product/app_listByType.do";
    }

    // 查询用户下级客户
    public static String getClient() {
        return getDefaultHost() + "userattach/app_getattach.do";
    }

    // 施工部当日订单
    public static String getOrderByToday() {
        return getDefaultHost() + "order/app_todayorder.do";
    }

    // 工人定位
    public static String getLocation() {
        return getDefaultHost() + "user/app_dingwei.do";
    }

    // 订单搜索
    public static String getOrderByCondition() {
        return getDefaultHost() + "order/app_search.do";
    }

    // 解锁MAC
    public static String getUnlock() {
        return getDefaultHost() + "user/app_unlock.do";
    }

}
